package cn.zfs.datasource.advice;


import cn.zfs.datasource.constant.Constant;
import cn.zfs.datasource.util.StringUtil;

@SuppressWarnings("AlibabaClassMustHaveAuthor")
public class GlobalException extends Exception {

    private String message;

    public GlobalException(String message, Object... objects) {
        message = StringUtil.formatString(message, Constant.REPLACESTR, Constant.REGEX, objects);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
